package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * foodstuff_purchase
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "foodstuff_purchase")
public class EntityFoodstuffPurchase implements Serializable {

    private static final long serialVersionUID = -453377957439655819L;
    /**
     * 菜品编号，主键自增
     */
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Integer purchaseId;

    /**
     * 单位编号
     */
    private Long comId;
    private Integer merchId;

    private Integer restStaffId;
    private String purchaseOrder;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
    private Date purchaseTime;
    private Integer foodstuffId;
    private Integer unitPrice;
    private String suppliers;
    private String growthLocality;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
    private Date effectiveDate;

    /**
     * 生成时间，计划日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date createTime;

    /**
     * 创建人p_id
     */
    private Integer createUser;

    /**
     * 更新时间，最后使用日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date updateTime;

    /**
     * 更新人p_id
     */
    private Integer updateUser;

    /**
     * CREATE TABLE `foodstuff_purchase` (
     *   `purchase_id` int(11) NOT NULL AUTO_INCREMENT,
     *   `com_id` int(11) DEFAULT '0' COMMENT '单位编号',
     *   `merch_id` int(11) DEFAULT '0' COMMENT '商户编号（0表示单位）',
     *   `rest_staff_id` int(11) DEFAULT '0' COMMENT '商户员工编号',
     *   `purchase_order` varchar(50) DEFAULT '' COMMENT '采购订单编号',
     *   `purchase_time` date DEFAULT NULL COMMENT '菜品编号',
     *   `foodstuff_id` int(11) DEFAULT '0' COMMENT '食材编号',
     *   `unit_price` int(11) DEFAULT '0' COMMENT '单价（以分为单位）',
     *   `suppliers` varchar(80) DEFAULT '' COMMENT '供应商',
     *   `growth_locality` varchar(80) DEFAULT '' COMMENT '原产地',
     *   `effective_dat` date DEFAULT NULL COMMENT '有效日期',
     *   `create_time` datetime DEFAULT NULL COMMENT '生成时间',
     *   `create_user` varchar(50) DEFAULT '' COMMENT '创建人',
     *   `update_time` datetime DEFAULT NULL COMMENT '更新时间',
     *   `update_user` varchar(50) DEFAULT '' COMMENT '更新人',
     *   PRIMARY KEY (`purchase_id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='食材采购明细';
     */

}